package gof23.structure.adapter;
/**
 * 通过继承的方式实现适配器
 * 
 */
public class Adapter_ext extends Adaptee implements Target{

	/**
	 * 适配
	 */
	@Override
	public void doSomthing1(String thing1) {
		System.out.println("adapter do thing1 ");
		this.doSomething(thing1);
		
	}

	@Override
	public void doSomthing2(String thing2) {
		System.out.println("adapter do thing2");
		this.doSomething(thing2);
		
	}

}
